//
//  ZODPreviewController.h
//  ZTEOnlineDoc
//
//  Created by 万伟琦 on 2018/9/10.
//  Copyright © 2018年 万伟琦. All rights reserved.
//

#import <UIKit/UIKit.h>
#import <WebKit/WebKit.h>
#import "ZODCommonDefine.h"
@class ZODAttInfo;
@class ZODOnlineDocConfiguration;

NS_ASSUME_NONNULL_BEGIN

//@protocol ZODPreviewDelegate <NSObject>
//
////预览成功
//- (void)previewDidSuccess;
//
////预览失败
//- (void)previewDidFailWithFailCode:(NSString *)failCode;
//
//@end

@interface ZODPreviewController : UIViewController

@property (nonatomic) WKWebView *webView;
@property (nonatomic) ZODAttInfo *attInfo;
@property (nonatomic) ZODOnlineDocConfiguration *configuration;
@property (nonatomic, assign) ZODAuthResult authResult;

@property (nonatomic) dispatch_group_t group;
@property (nonatomic) dispatch_queue_t queue;

@property (nonatomic) NSBlockOperation *evaluateJSOperation;
@property (nonatomic) NSBlockOperation *authCompleteOperation;

- (instancetype)initWithConfiguration:(ZODOnlineDocConfiguration *)config attInfo:(ZODAttInfo *)attInfo;

- (void)back;

@end

NS_ASSUME_NONNULL_END
